package com.pshare.artemis.parkingdevice.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pshare.artemis.parkingdevice.bean.Gateway;
import com.pshare.artemis.parkingdevice.mapper.GatewayMapper;
import com.pshare.artemis.parkingdevice.vo.GatewayUserVO;
import com.pshare.framework.mapper.BaseMapper;
import com.pshare.framework.service.BaseService;

@Service
public class GatewayService extends BaseService<Long,Gateway>{

	@Autowired
	private GatewayMapper gatewayMapper;
	
	@Override
	protected BaseMapper<Long, Gateway> getBaseMapper() {
		return gatewayMapper;
	}
	
	public Gateway getByMac(String mac){
		return gatewayMapper.getByMac(mac);
	}
	
	public void updateVpwd(Gateway bean){
		gatewayMapper.updateVpwd(bean);
	}
	
	public List<Gateway> getListByUserId(Long userId){
		return gatewayMapper.getListByUserId(userId);
	}
	
}
